package com.itboy.service;

import com.itboy.bean.Color;
import com.itboy.bean.User;
import com.itboy.mapper.ColorMapper;
import com.itboy.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class ColorService {
    @Autowired
   private ColorMapper colorMapper;


    public List<Color> findAll(){

        return colorMapper.findAll();
    }


    public List<Color> findColorById(String id) {
        return colorMapper.findColorById(id);
    }

    public void insertColor(Color color) {
        colorMapper.insertColor(color);
    }

    public void alterById(Color color) {
        colorMapper.alterById(color);
    }

    public void delById(String id) {
        colorMapper.delById(id);
    }
}

